﻿@model Eqwww.Domain.Models.SystemManage.PostModel

@{
    ViewData["Title"] = "Details";
    Layout = "~/Views/Shared/_ManageFormLayout.cshtml";
}

<div class="mdui-container">
    <div class="mdui-row">
        <div class="mdui-col-xs-12 mdui-col-md-6">

            <div class="mdui-typo-title mdui-p-t-4">基本信息</div>
            <div class="mdui-list">
                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.Name)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.Name)
                        </div>
                    </div>
                </div>

                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.Code)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.Code)
                        </div>
                    </div>
                </div>

                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.OrganizeId)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.Organize.Name)
                        </div>
                    </div>
                </div>

                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            完整路径
                        </div>
                        <div class="mdui-list-item-title">
                            @ViewBag.PostPath
                        </div>
                    </div>
                </div>

                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.JobId)
                        </div>
                        <div class="mdui-list-item-title">
                            @if(!string.IsNullOrEmpty(Model.JobId)){
                                @Html.DisplayFor(model => model.Job.Name)
                            }
                            else{
                                <span class="mdui-text-color-theme-accent">未设置</span>
                            }
                        </div>
                    </div>
                </div>

                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.ParentId)
                        </div>
                        <div class="mdui-list-item-title">
                            @if(!string.IsNullOrEmpty(Model.ParentId)){
                            @Html.DisplayFor(model => model.Parent.Name)
                            }
                            else{
                                <span class="mdui-text-color-theme-accent">未设置</span>
                            }
                        </div>
                    </div>
                </div>

                

                <div class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-text">
                            @Html.DisplayNameFor(model => model.SortCode)
                        </div>
                        <div class="mdui-list-item-title">
                            @Html.DisplayFor(model => model.SortCode)
                        </div>
                    </div>
                </div>

                

            </div>
            <div class="mdui-divider"></div>

        </div>   

        <div class="mdui-col-xs-12 mdui-col-md-6">
            
                    <div class="mdui-typo-title  mdui-p-t-4">维护历史</div>
                    <div class="mdui-list">
                        <div class="mdui-list-item mdui-ripple">
                            <i class="mdui-list-item-icon mdui-icon material-icons">account_circle</i>
                            <div class="mdui-list-item-content">
                                <div class="mdui-list-item-text">
                                    @Html.DisplayNameFor(model => model.CreateUserId)
                                </div>
                                <div class="mdui-list-item-title">
                                    @Html.DisplayFor(model => model.CreateUser.RealName)
                                </div>
                            </div>
                        </div>

                        <div class="mdui-list-item mdui-ripple">
                            <i class="mdui-list-item-icon mdui-icon material-icons">access_time</i>
                            <div class="mdui-list-item-content">
                                <div class="mdui-list-item-text">
                                    @Html.DisplayNameFor(model => model.CreateTime)
                                </div>
                                <div class="mdui-list-item-title">
                                    @Html.DisplayFor(model => model.CreateTime)
                                </div>
                            </div>
                        </div>

                        <div class="mdui-list-item mdui-ripple">
                            <i class="mdui-list-item-icon mdui-icon material-icons">account_circle</i>
                            <div class="mdui-list-item-content">
                                <div class="mdui-list-item-text">
                                    @Html.DisplayNameFor(model => model.LastUpdateUserId)
                                </div>
                                <div class="mdui-list-item-title">
                                    @Html.DisplayFor(model => model.LastUpdateUser.RealName)
                                </div>
                            </div>
                        </div>

                        <div class="mdui-list-item mdui-ripple">
                            <i class="mdui-list-item-icon mdui-icon material-icons">access_time</i>
                            <div class="mdui-list-item-content">
                                <div class="mdui-list-item-text">
                                    @Html.DisplayNameFor(model => model.LastUpdateTime)
                                </div>
                                <div class="mdui-list-item-title">
                                    @Html.DisplayFor(model => model.LastUpdateTime)
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            
    </div>
</div>
